package com.atguigu.eduservice;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@EnableDiscoveryClient //nacos 注册
@ComponentScan(basePackages = {"com.atguigu"})//扫描规则，扫描其他模块下的配置类，加载配置类，因为配置类是在项目启动时使用，加上扫描启动的时候进行扫描配置运行
public class EduApplication {

    public static void main(String[] args) {
        SpringApplication.run(EduApplication.class, args);
    }
}
